﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2"
                assembly="Inovout.People"
				        namespace="Inovout.People.Membership.Domain">

  <joined-subclass name="PersonMembership" extends="Inovout.Membership.Domain.Membership" 
                   table="Memberships_PersonMembership">
    <key column="PersonMembershipId" />
    <many-to-one name="Person" column="PersonId" 
    class="Inovout.People.Domain.Person,Inovout.People.Domain" cascade="all" unique="true" lazy="proxy" />
    <!--<set name="Person" cascade="all" inverse="true">
      <key column="PersonId"></key>
      <one-to-many class="Inovout.People.Domain.Person,Inovout.People.Domain"/>
    </set>-->
    <property name="CreatedTime" access="field.camelcase" />
    <property name="CreatedUserName" access="field.camelcase" />
    <property name="ModifiedTime" access="field.camelcase" />
    <property name="ModifiedUserName" access="field.camelcase" />
    <property name="AccessedTime" access="field.camelcase" />
    <property name="AccessedUserName" access="field.camelcase" />
    <property name="Memo" />
    <property name="IsInvalid" />
  </joined-subclass>
</hibernate-mapping>


